package org.example.myleet.p419;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(2 == solution.countBattleships(Parser.parseBoard("[[\"X\",\".\",\".\",\"X\"],[\".\",\".\",\".\",\"X\"],[\".\",\".\",\".\",\"X\"]]")));
        Assert.isTrue(0 == solution.countBattleships(Parser.parseBoard("[[\".\"]]")));
    }
}
